package com.qf.controller;

import com.qf.entity.TbBrandGood;
import com.qf.service.TbBrandGoodService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (TbBrandGood)表控制层
 *
 * @author makejava
 * @since 2021-04-06 09:44:31
 */
@RestController
@RequestMapping("tbBrandGood")
public class TbBrandGoodController {
    /**
     * 服务对象
     */
    @Resource
    private TbBrandGoodService tbBrandGoodService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TbBrandGood selectOne(Integer id) {
        return this.tbBrandGoodService.queryById(id);
    }

}